package org.p2psimulator.entity.protocol.messages.chord;

import org.p2psimulator.entity.Id;
import org.p2psimulator.entity.Message;
import org.p2psimulator.entity.behavior.BehaviorTypes;
import org.p2psimulator.entity.protocol.messages.MessageTypes;



public class SucessorHere extends Message {

	private Id sucessorId;

	private Id referredId;


	public SucessorHere(Id origin, Id destination, int transactionId, BehaviorTypes originBehavior) {
		super(origin, destination, transactionId, originBehavior);

	}


	public Id getSucessorId() {
		return sucessorId;
	}


	public void setSucessorId(Id sucessorId) {
		this.sucessorId = sucessorId;
	}


	@Override
	public MessageTypes getMessageType() {

		return MessageTypes.CHORD_SUCESSORHERE;
	}

	@Override
	public String getName() {
		return MessageTypes.CHORD_SUCESSORHERE.getName();
	}


	public Id getReferredId() {
		return referredId;
	}


	public void setReferredId(Id requesterId) {
		this.referredId = requesterId;
	}

}
